package cn.zhangbo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.zhangbo.dao.TeacherMapper;
import cn.zhangbo.dao.po.Teacher;

@RestController
public class TestController {
    @Autowired
    TeacherMapper teacherMapper;

    @GetMapping("/test")
    public Object test(String name) {
        List<Teacher> teachers = teacherMapper.findByName(name);
        return teacherMapper.findById(1L);
    }
}
